const {
	defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	devServer: {
		port: 8888,
		
		// 请求头
		headers: {
			"Access-Control-Allow-Origin": '*'
		},
		// 服务地址
		proxy: {
			"/api": {
				// 服务地址
				target: "http://localhost:8089",
				// 跨域
				changOrigin: true,
				pathRewrite: {
					"^/api": "",
				},
			}
		},
	}
})